import request from '@/utils/request'

export default{
   
     //添加小节信息
     addVideo(video){
        return request({
            url: `/eduservice/video/addVideo`,
            method: 'post',
            data:video
        })
     },
     //使用id查询小结
     getVideo(id){
        return request({
            url: `/eduservice/video/getVideo/${id}`,
            method: 'get'
        })
     },
     //修改小结
     updateVideo(video){
        return request({
            url: `/eduservice/video/updateVideo`,
            method: 'post',
            data:video
        })
     },
     //删除小结
     deleteVideo(id){
        return request({
            url: `/eduservice/video/deleteVideo/${id}`,
            method: 'delete'
        })
     },
     //删除视频
     removeAliyunVideo(videoId){
        return request({
            url: `/eduvod/video/removeVideo/${videoId}`,
            method: 'delete'
        })
     }
}    